package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExamExamMapper;
import com.ruoyi.system.domain.ExamExam;
import com.ruoyi.system.service.IExamExamService;
import com.ruoyi.common.core.text.Convert;

/**
 * 考试Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-30
 */
@Service
public class ExamExamServiceImpl implements IExamExamService 
{
    @Autowired
    private ExamExamMapper examExamMapper;

    /**
     * 查询考试
     * 
     * @param id 考试主键
     * @return 考试
     */
    @Override
    public ExamExam selectExamExamById(Long id)
    {
        return examExamMapper.selectExamExamById(id);
    }

    /**
     * 查询考试列表
     * 
     * @param examExam 考试
     * @return 考试
     */
    @Override
    public List<ExamExam> selectExamExamList(ExamExam examExam)
    {
        return examExamMapper.selectExamExamList(examExam);
    }

    /**
     * 新增考试
     * 
     * @param examExam 考试
     * @return 结果
     */
    @Override
    public int insertExamExam(ExamExam examExam)
    {
        return examExamMapper.insertExamExam(examExam);
    }

    /**
     * 修改考试
     * 
     * @param examExam 考试
     * @return 结果
     */
    @Override
    public int updateExamExam(ExamExam examExam)
    {
        return examExamMapper.updateExamExam(examExam);
    }

    /**
     * 批量删除考试
     * 
     * @param ids 需要删除的考试主键
     * @return 结果
     */
    @Override
    public int deleteExamExamByIds(String ids)
    {
        return examExamMapper.deleteExamExamByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除考试信息
     * 
     * @param id 考试主键
     * @return 结果
     */
    @Override
    public int deleteExamExamById(Long id)
    {
        return examExamMapper.deleteExamExamById(id);
    }
}
